<div class="col-jy" style="width:100%;">
<ul class="nav nav-tabs">
<li ng-class="{'active':pagedata.htmls.edit_tab==check_show_lang('满额优惠')}" class="active">
<a href="javascript:;" ng-click="pagedata.htmls.edit_tab=check_show_lang('满额优惠')" class="ng-binding">满额优惠</a>
</li>
<li ng-class="{'active':pagedata.htmls.edit_tab==check_show_lang('满件优惠')}">
<a href="javascript:;" ng-click="pagedata.htmls.edit_tab=check_show_lang('满件优惠')" class="ng-binding">满件优惠</a>
</li>
</ul>
<div class="panel form-horizontal" ng-show="pagedata.htmls.edit_tab==check_show_lang('满额优惠')">
<div class="page-header">
<h4 class="ng-binding">满额优惠</h4>
</div>
<div class="panel-body">
<div class="form-group">
	<label class="col-xs-12 col-sm-3 col-md-2 right-label" ng-class="{'must':false}">是否开启</label>
	<div class="col-xs-12 col-sm-8 col-lg-9">
		<label ng-if="'{isradio}'!=1" class="right-label">
			<div ng-show="pagedata.item.enough_feeopen==1" class="switch switchOn ng-hide" ng-click="pagedata.item.enough_feeopen=0"></div>
			<div ng-show="pagedata.item.enough_feeopen!=1" class="switch" ng-click="pagedata.item.enough_feeopen=1"></div>
		</label>
		<div class="help-block"></div>
	</div>
</div>
<div class="form-group ng-scope">
				<label class="col-xs-12 col-sm-3 col-md-2 right-label" ng-class="{'must':false}">优惠类型</label>
				<div class="col-xs-12 col-sm-8 col-lg-9">
					<div ng-style="{'background-color':ifelse(false,'#f7f7f7','')}">
					<div class="radio radio-inline" ng-repeat="(value,dtitle) in pagedata.enough_types">
						<label>
							<input type="radio" value="{{value}}" ng-checked="pagedata.item.enough_feetype==value" ng-model="pagedata.item.enough_feetype" class="ng-pristine ng-untouched ng-valid ng-not-empty">{{dtitle}}
						</label>
					</div>
					</div>
					<div class="help-block"></div>
				</div>
</div>
<div class="form-group ng-hide" ng-show="check_show(pagedata.item,{'enough_feetype':0})">
	<label class="col-xs-12 col-sm-3 col-md-2 right-label ng-binding" ng-class="{'must':false}">
		满额立减
	</label>
	<div class="col-xs-12 col-sm-8 col-lg-9" class="col-xs-12 col-sm-8 col-lg-9">
	<div class="table-responsive panel-body" style="padding:0" ng-init="checkarray(pagedata.item,'enough_feeset1')">
			<table class="table jinyun-table table-hover vertical-middle jinyun-form">
				<thead class="navbar-inner">
					<tr>
						<th class="ng-binding">满</th><th class="ng-binding">减</th>
						<th class="text-right ng-binding" style="word-break : break-all;">操作</th>
					</tr>
				</thead>
				<tbody id="re-items">
					<tr ng-if="'{noadd}'!='1'" class="ng-scope">
						<td colspan="92" class="text-left">
							<a class="color-gray add-new-keyword" href="javascript:;" ng-click="newfield={};i=pagedata.item.enough_feeset1.push(newfield);func.detail_enough_feeset1(pagedata.item.enough_feeset1[i-1])">
								<span class="add-icon"><i class="fa fa-plus"></i></span>
								<span class="text ng-binding">添加一个优惠项</span>
							</a>
						</td>
					</tr>
				</tbody>
			</table>
	</div>
	</div>
</div>
<div id="floating-content-enough_feeset1" ng-init="pagedata.current_field={}" class="modal fade" data-cs="xxx" tabindex="-1" style="z-index:1039;display:none">
    <div class="jinyun-modal-dialog modal-dialog" style="width: 920px;">
        <div class="modal-content">
            <div class="modal-header"><button aria-hidden="true" data-dismiss="modal" class="close" type="button">×</button><h3>设置详细信息</h3></div>
			<div class="modal-body form-horizontal">
			<div class="form-group">
				<label class="col-xs-12 col-sm-3 col-md-2 right-label ng-binding" ng-class="{'must':false}">满</label>
				<div class="col-xs-12 col-sm-8 col-lg-9">
						<div class="input-group">
							<input class="form-control ng-pristine ng-untouched ng-valid ng-empty" ng-class="{'must_set':false}" onblur="if($(this).hasClass('must_set') &amp;&amp; $(this).val()==''){$(this).parent().next().show();$(this).css('border-color','red')}else{$(this).parent().next().hide();$(this).css('border-color','#ddd')}" ng-model="pagedata.current_field.man" type="text">
							<span class="input-group-addon ng-binding">元</span>
							
						</div>
						<div class="help-block ng-binding" style="display:none;color:red;">请输入满</div>
						<div class="help-block"></div>
					</div>
			</div>
			<div class="form-group">
				<label class="col-xs-12 col-sm-3 col-md-2 right-label ng-binding" ng-class="{'must':false}">减</label>
				<div class="col-xs-12 col-sm-8 col-lg-9">
						<div class="input-group">
							<input class="form-control ng-pristine ng-untouched ng-valid ng-empty" ng-class="{'must_set':false}" onblur="if($(this).hasClass('must_set') &amp;&amp; $(this).val()==''){$(this).parent().next().show();$(this).css('border-color','red')}else{$(this).parent().next().hide();$(this).css('border-color','#ddd')}" ng-model="pagedata.current_field.jian" type="text">
							<span class="input-group-addon ng-binding">元</span>
							
						</div>
						<div class="help-block ng-binding" style="display:none;color:red;">请输入减</div>
						<div class="help-block"></div>
					</div>
			</div>
			</div>
            <div class="modal-footer"><a class="btn btn-primary ng-binding" ng-click="func.detail_submit_enough_feeset1()">完成</a></div>
        </div>
    </div>
</div>
<script>
window.scope.func.detail_enough_feeset1=function(item){
	window.scope.pagedata.current_field=item;
	window.bootstrap('#floating-content-enough_feeset1').modal();
}
window.scope.func.detail_submit_enough_feeset1=function(){
	window.scope.check_form('floating-content-enough_feeset1');
	window.bootstrap('#floating-content-enough_feeset1').modal('hide');
}

</script><div class="form-group" ng-show="check_show(pagedata.item,{'enough_feetype':1})">
	<label ng-show="'满额打折' !=''" class="col-xs-12 col-sm-3 col-md-2 right-label ng-binding" ng-class="{'must':false}">
		满额打折
	</label>
	<div ng-class="{'col-xs-12 col-sm-8 col-lg-9':1,'col-jy-10':'满额打折'==''}" class="col-xs-12 col-sm-8 col-lg-9">
	<!-- ngIf: ''!='' -->
	<div class="table-responsive panel-body" ng-class="{'panel-body':'满额打折'}" style="padding:0" ng-init="checkarray(pagedata.item,'enough_feeset2')">
			<table class="table jinyun-table table-hover vertical-middle jinyun-form">
				<thead class="navbar-inner">
					<tr>
						<th class="ng-binding">满</th><th class="ng-binding">打N折</th>
						<th class="text-right ng-binding" style="word-break : break-all;">操作</th>
					</tr>
				</thead>
				<tbody id="re-items">
					<!-- ngRepeat: item in pagedata.item.enough_feeset2 --><tr ng-repeat="item in pagedata.item.enough_feeset2" class="ng-scope">
						<td class="ng-binding">10元</td><td class="ng-binding">6折</td>
						<td class="text-right">
							<!-- ngIf: $index>0 && ''=='' -->
							<a href="javascript:;" title="编辑" ng-click="func.detail_enough_feeset2(item)" class="btn btn-primary btn-sm"><i class="fa fa-edit"></i></a>
							<!-- ngIf: item.nodel !=1 --><a ng-if="item.nodel !=1" href="javascript:;" ng-click="pagedata.item.enough_feeset2.splice($index,1)" title="删除此条目" class="btn btn-danger btn-sm ng-scope"><i class="fa fa-times"></i></a><!-- end ngIf: item.nodel !=1 --> &nbsp;
						</td>
					</tr><!-- end ngRepeat: item in pagedata.item.enough_feeset2 -->
					<!-- ngIf: '{noadd}'!='1' --><tr ng-if="'{noadd}'!='1'" class="ng-scope">
						<td colspan="92" class="text-left">
							<a class="color-gray add-new-keyword" href="javascript:;" ng-click="newfield={};i=pagedata.item.enough_feeset2.push(newfield);func.detail_enough_feeset2(pagedata.item.enough_feeset2[i-1])">
								<span class="add-icon"><i class="fa fa-plus"></i></span>
								<span class="text ng-binding">添加一个打折项</span>
							</a>
						</td>
					</tr><!-- end ngIf: '{noadd}'!='1' -->
				</tbody>
			</table>
	</div>
	</div>
</div>
<div id="floating-content-enough_feeset2" ng-init="pagedata.current_field={}" class="modal fade" data-cs="xxx" tabindex="-1" style="z-index:1039;display:none">
    <div class="jinyun-modal-dialog modal-dialog" style="width: 920px;">
        <div class="modal-content">
            <div class="modal-header"><button aria-hidden="true" data-dismiss="modal" class="close" type="button">×</button><h3>设置详细信息</h3></div>
			<div class="modal-body form-horizontal">
            
<div class="form-group">
	<label class="col-xs-12 col-sm-3 col-md-2 right-label ng-binding" ng-class="{'must':false}">满</label>
	<div class="col-xs-12 col-sm-8 col-lg-9">
			<div class="input-group">
				<input class="form-control ng-pristine ng-untouched ng-valid ng-empty" ng-class="{'must_set':false}" onblur="if($(this).hasClass('must_set') &amp;&amp; $(this).val()==''){$(this).parent().next().show();$(this).css('border-color','red')}else{$(this).parent().next().hide();$(this).css('border-color','#ddd')}" ng-model="pagedata.current_field.man" ng-readonly="false" type="text">
				<span class="input-group-addon ng-binding">元</span>
				
			</div>
			<div class="help-block ng-binding" style="display:none;color:red;">请输入满</div>
			<div class="help-block"></div>
		</div>
</div>
<div class="form-group">
	<label class="col-xs-12 col-sm-3 col-md-2 right-label ng-binding" ng-class="{'must':false}">打N折</label>
	<div class="col-xs-12 col-sm-8 col-lg-9">
			<div class="input-group">
				<input class="form-control ng-pristine ng-untouched ng-valid ng-empty" ng-class="{'must_set':false}" onblur="if($(this).hasClass('must_set') &amp;&amp; $(this).val()==''){$(this).parent().next().show();$(this).css('border-color','red')}else{$(this).parent().next().hide();$(this).css('border-color','#ddd')}" ng-model="pagedata.current_field.rate" ng-readonly="false" type="text">
				<span class="input-group-addon ng-binding">折</span>
				
			</div>
			<div class="help-block ng-binding" style="display:none;color:red;">请输入打N折</div>
			<div class="help-block">填写：1~10的数字；例如：填8，表示打8折</div>
		</div>
</div>
			</div>
            <div class="modal-footer"><a class="btn btn-primary ng-binding" ng-click="func.detail_submit_enough_feeset2()">完成</a></div>
        </div>
    </div>
</div>
<script>
window.scope.func.detail_enough_feeset2=function(item){
	window.scope.pagedata.current_field=item;
	//var cs=$('#floating-content-enough_feeset2').attr('data-cs');
	//alert(cs);
	window.bootstrap('#floating-content-enough_feeset2').modal();
}
window.scope.func.detail_submit_enough_feeset2=function(){
	window.scope.check_form('floating-content-enough_feeset2');
	window.bootstrap('#floating-content-enough_feeset2').modal('hide');
}

</script></div></div><div class="panel form-horizontal ng-hide" ng-show="pagedata.htmls.edit_tab==check_show_lang('满件优惠')"><div class="page-header"><h4 class="ng-binding">满件优惠</h4></div><div class="panel-body"><div class="form-group">
	<label class="col-xs-12 col-sm-3 col-md-2 right-label ng-binding" ng-class="{'must':false}">是否开启</label>
	<div class="col-xs-12 col-sm-8 col-lg-9">
		<!-- ngIf: '{isradio}'!=1 --><label ng-if="'{isradio}'!=1" class="right-label ng-scope">
			<div ng-show="pagedata.item.enough_numopen==1" class="switch switchOn ng-hide" ng-click="pagedata.item.enough_numopen=0"></div>
			<div ng-show="pagedata.item.enough_numopen!=1" class="switch" ng-click="pagedata.item.enough_numopen=1"></div>
		</label><!-- end ngIf: '{isradio}'!=1 -->
		<!-- ngRepeat: (value,dtitle) in ['否','是'] --><!-- ngIf: '{isradio}'==1 --><!-- end ngRepeat: (value,dtitle) in ['否','是'] --><!-- ngIf: '{isradio}'==1 --><!-- end ngRepeat: (value,dtitle) in ['否','是'] -->
		<div class="help-block"></div>
	</div>
</div><!-- ngIf: 100==100 --><div ng-if="100==100" class="form-group ng-scope">
				<label class="col-xs-12 col-sm-3 col-md-2 right-label ng-binding" ng-class="{'must':false}">优惠类型</label>
				<div class="col-xs-12 col-sm-8 col-lg-9">
					<div ng-style="{'background-color':ifelse(false,'#f7f7f7','')}">
					<!-- ngRepeat: (value,dtitle) in pagedata.enough_types --><div class="radio radio-inline ng-scope" ng-repeat="(value,dtitle) in pagedata.enough_types">
						<label class="ng-binding">
							<input type="radio" value="0" ng-checked="pagedata.item.enough_numtype==value" ng-model="pagedata.item.enough_numtype" ng-disabled="false" class="ng-pristine ng-untouched ng-valid ng-not-empty" name="17375">立减
						</label>
					</div><!-- end ngRepeat: (value,dtitle) in pagedata.enough_types --><div class="radio radio-inline ng-scope" ng-repeat="(value,dtitle) in pagedata.enough_types">
						<label class="ng-binding">
							<input type="radio" value="1" ng-checked="pagedata.item.enough_numtype==value" ng-model="pagedata.item.enough_numtype" ng-disabled="false" class="ng-pristine ng-untouched ng-valid ng-not-empty" name="17377" checked="checked">打折
						</label>
					</div><!-- end ngRepeat: (value,dtitle) in pagedata.enough_types -->
					</div>
					<div class="help-block"></div>
				</div>
</div><!-- end ngIf: 100==100 -->
<!-- ngIf: 100!=100 -->
<div class="form-group ng-hide" ng-show="check_show(pagedata.item,{'enough_numtype':0})">
	<label ng-show="'满件立减' !=''" class="col-xs-12 col-sm-3 col-md-2 right-label ng-binding" ng-class="{'must':false}">
		满件立减
	</label>
	<div ng-class="{'col-xs-12 col-sm-8 col-lg-9':1,'col-jy-10':'满件立减'==''}" class="col-xs-12 col-sm-8 col-lg-9">
	<!-- ngIf: ''!='' -->
	<div class="table-responsive panel-body" ng-class="{'panel-body':'满件立减'}" style="padding:0" ng-init="checkarray(pagedata.item,'enough_numset1')">
			<table class="table jinyun-table table-hover vertical-middle jinyun-form">
				<thead class="navbar-inner">
					<tr>
						<th class="ng-binding">满</th><th class="ng-binding">减</th>
						<th class="text-right ng-binding" style="word-break : break-all;">操作</th>
					</tr>
				</thead>
				<tbody id="re-items">
					<tr class="ng-scope">
						<td colspan="92" class="text-left">
							<a class="color-gray add-new-keyword" href="javascript:;" ng-click="newfield={};i=pagedata.item.enough_numset1.push(newfield);func.detail_enough_numset1(pagedata.item.enough_numset1[i-1])">
								<span class="add-icon"><i class="fa fa-plus"></i></span>
								<span class="text ng-binding">添加一个优惠项</span>
							</a>
						</td>
					</tr>
				</tbody>
			</table>
	</div>
	</div>
</div>
<div id="floating-content-enough_numset1" ng-init="pagedata.current_field={}" class="modal fade" data-cs="xxx" tabindex="-1" style="z-index:1039;display:none">
    <div class="jinyun-modal-dialog modal-dialog" style="width: 920px;">
        <div class="modal-content">
            <div class="modal-header"><button aria-hidden="true" data-dismiss="modal" class="close" type="button">×</button><h3>设置详细信息</h3></div>
			<div class="modal-body form-horizontal">      
			<div class="form-group">
				<label class="col-xs-12 col-sm-3 col-md-2 right-label ng-binding" ng-class="{'must':false}">满</label>
				<div class="col-xs-12 col-sm-8 col-lg-9">
						<div class="input-group">
							<input class="form-control ng-pristine ng-untouched ng-valid ng-empty" ng-class="{'must_set':false}" onblur="if($(this).hasClass('must_set') &amp;&amp; $(this).val()==''){$(this).parent().next().show();$(this).css('border-color','red')}else{$(this).parent().next().hide();$(this).css('border-color','#ddd')}" ng-model="pagedata.current_field.man" ng-readonly="false" type="text">
							<span class="input-group-addon ng-binding">件</span>
							
						</div>
						<div class="help-block ng-binding" style="display:none;color:red;">请输入满</div>
						<div class="help-block"></div>
					</div>
			</div>
			<div class="form-group">
				<label class="col-xs-12 col-sm-3 col-md-2 right-label ng-binding" ng-class="{'must':false}">减</label>
				<div class="col-xs-12 col-sm-8 col-lg-9">
						<div class="input-group">
							<input class="form-control ng-pristine ng-untouched ng-valid ng-empty" ng-class="{'must_set':false}" onblur="if($(this).hasClass('must_set') &amp;&amp; $(this).val()==''){$(this).parent().next().show();$(this).css('border-color','red')}else{$(this).parent().next().hide();$(this).css('border-color','#ddd')}" ng-model="pagedata.current_field.jian" ng-readonly="false" type="text">
							<span class="input-group-addon ng-binding">元</span>
							
						</div>
						<div class="help-block ng-binding" style="display:none;color:red;">请输入减</div>
						<div class="help-block"></div>
					</div>
			</div>
			</div>
            <div class="modal-footer"><a class="btn btn-primary ng-binding" ng-click="func.detail_submit_enough_numset1()">完成</a></div>
        </div>
    </div>
</div>
<script>
window.scope.func.detail_enough_numset1=function(item){
	window.scope.pagedata.current_field=item;
	//var cs=$('#floating-content-enough_numset1').attr('data-cs');
	//alert(cs);
	window.bootstrap('#floating-content-enough_numset1').modal();
}
window.scope.func.detail_submit_enough_numset1=function(){
	window.scope.check_form('floating-content-enough_numset1');
	window.bootstrap('#floating-content-enough_numset1').modal('hide');
}

</script>
<div class="form-group" ng-show="check_show(pagedata.item,{'enough_numtype':1})">
	<label ng-show="'满件打折' !=''" class="col-xs-12 col-sm-3 col-md-2 right-label ng-binding" ng-class="{'must':false}">
		满件打折
	</label>
	<div ng-class="{'col-xs-12 col-sm-8 col-lg-9':1,'col-jy-10':'满件打折'==''}" class="col-xs-12 col-sm-8 col-lg-9">
	<!-- ngIf: ''!='' -->
	<div class="table-responsive panel-body" ng-class="{'panel-body':'满件打折'}" style="padding:0" ng-init="checkarray(pagedata.item,'enough_numset2')">
			<table class="table jinyun-table table-hover vertical-middle jinyun-form">
				<thead class="navbar-inner">
					<tr>
						<th class="ng-binding">满</th><th class="ng-binding">打N折</th>
						<th class="text-right ng-binding" style="word-break : break-all;">操作</th>
					</tr>
				</thead>
				<tbody id="re-items">
					<!-- ngRepeat: item in pagedata.item.enough_numset2 --><tr ng-repeat="item in pagedata.item.enough_numset2" class="ng-scope">
						<td class="ng-binding">33件</td><td class="ng-binding">7折</td>
						<td class="text-right">
							<!-- ngIf: $index>0 && ''=='' -->
							<a href="javascript:;" title="编辑" ng-click="func.detail_enough_numset2(item)" class="btn btn-primary btn-sm"><i class="fa fa-edit"></i></a>
							<!-- ngIf: item.nodel !=1 --><a ng-if="item.nodel !=1" href="javascript:;" ng-click="pagedata.item.enough_numset2.splice($index,1)" title="删除此条目" class="btn btn-danger btn-sm ng-scope"><i class="fa fa-times"></i></a><!-- end ngIf: item.nodel !=1 --> &nbsp;
						</td>
					</tr>
					<tr ng-if="'{noadd}'!='1'" class="ng-scope">
						<td colspan="92" class="text-left">
							<a class="color-gray add-new-keyword" href="javascript:;" ng-click="newfield={};i=pagedata.item.enough_numset2.push(newfield);func.detail_enough_numset2(pagedata.item.enough_numset2[i-1])">
								<span class="add-icon"><i class="fa fa-plus"></i></span>
								<span class="text ng-binding">添加一个打折项</span>
							</a>
						</td>
					</tr>
				</tbody>
			</table>
	</div>
	</div>
</div>
<div id="floating-content-enough_numset2" ng-init="pagedata.current_field={}" class="modal fade" data-cs="xxx" tabindex="-1" style="z-index:1039;display:none">
    <div class="jinyun-modal-dialog modal-dialog" style="width: 920px;">
        <div class="modal-content">
            <div class="modal-header"><button aria-hidden="true" data-dismiss="modal" class="close" type="button">×</button><h3>设置详细信息</h3></div>
			<div class="modal-body form-horizontal">
            
<div class="form-group">
	<label class="col-xs-12 col-sm-3 col-md-2 right-label ng-binding" ng-class="{'must':false}">满</label>
	<div class="col-xs-12 col-sm-8 col-lg-9">
			<div class="input-group">
				<input class="form-control ng-pristine ng-untouched ng-valid ng-empty" ng-class="{'must_set':false}" onblur="if($(this).hasClass('must_set') &amp;&amp; $(this).val()==''){$(this).parent().next().show();$(this).css('border-color','red')}else{$(this).parent().next().hide();$(this).css('border-color','#ddd')}" ng-model="pagedata.current_field.man" ng-readonly="false" type="text">
				<span class="input-group-addon ng-binding">件</span>
				
			</div>
			<div class="help-block ng-binding" style="display:none;color:red;">请输入满</div>
			<div class="help-block"></div>
		</div>
</div>
<div class="form-group">
	<label class="col-xs-12 col-sm-3 col-md-2 right-label ng-binding" ng-class="{'must':false}">打N折</label>
	<div class="col-xs-12 col-sm-8 col-lg-9">
			<div class="input-group">
				<input class="form-control ng-pristine ng-untouched ng-valid ng-empty" ng-class="{'must_set':false}" onblur="if($(this).hasClass('must_set') &amp;&amp; $(this).val()==''){$(this).parent().next().show();$(this).css('border-color','red')}else{$(this).parent().next().hide();$(this).css('border-color','#ddd')}" ng-model="pagedata.current_field.rate" ng-readonly="false" type="text">
				<span class="input-group-addon ng-binding">折</span>
				
			</div>
			<div class="help-block ng-binding" style="display:none;color:red;">请输入打N折</div>
			<div class="help-block">填写：1~10的数字；例如：填8，表示打8折</div>
		</div>
</div>
			</div>
            <div class="modal-footer"><a class="btn btn-primary ng-binding" ng-click="func.detail_submit_enough_numset2()">完成</a></div>
        </div>
    </div>
</div>
<script>
window.scope.func.detail_enough_numset2=function(item){
	window.scope.pagedata.current_field=item;
	//var cs=$('#floating-content-enough_numset2').attr('data-cs');
	//alert(cs);
	window.bootstrap('#floating-content-enough_numset2').modal();
}
window.scope.func.detail_submit_enough_numset2=function(){
	window.scope.check_form('floating-content-enough_numset2');
	window.bootstrap('#floating-content-enough_numset2').modal('hide');
}

</script>
</div>
</div>
<div class="modal-sub">
<button class="btn btn-primary ng-binding" ng-click="check_form();post(pagedata.item,'post')">提交</button>
</div>
</div>